package com.neusoft.aop;

import com.neusoft.aop.service.UmsAdminService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: duan
 * @Date: Create in 11:26 2020/10/31
 */
public class AOPDemo {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UmsAdminService bean = context.getBean(UmsAdminService.class);
        bean.insert();
        System.out.println("====================================");
        bean.update();
    }
}
